import cv2 as cv

# flags = [i for i in dir(cv) if i.startswith('COLOR_')]
# print( flags )

imgRGB = cv.imread("E://text.jpg")
imgGray = cv.cvtColor(imgRGB, cv.COLOR_BGR2GRAY)
imgHSV = cv.cvtColor(imgRGB, cv.COLOR_BGR2HSV)

# imgH,imgS,imgV = imgHSV[:,:,0],imgHSV[:,:,1],imgHSV[:,:,2]

cv.imshow("RGB", imgRGB)
# cv.waitKey(0)
cv.imshow("Gray", imgGray)
# cv.waitKey(0)
cv.imshow("HSV", imgHSV)
cv.waitKey(0)

cv.destroyAllWindows()